﻿#include "custom_page.h"

#include <QDebug>

CustomPage::CustomPage()
{

}

CustomPage::~CustomPage() {

}

bool CustomPage::certificateError(const QWebEngineCertificateError& certificateError)
{
	return true;
}


bool CustomPage::acceptNavigationRequest(const QUrl& url, NavigationType type, bool isMainFrame)
{
    qDebug() << "----------------------acceptNavigationRequest---url:" << url << "type=" << type;
    return true;
}

bool CustomPage::javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString *result)
{

    
    return  true;
}

QWebEnginePage* CustomPage::createWindow(WebWindowType type)
{
    return nullptr;
}
